home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / Vk / VkRepeatButton.z / VkRepeatButton
Encoding:
Text File  |  2002-10-03  |  6.7 KB  |  199 lines

  1.  
  2.  
  3.  
  4. VVVVkkkkRRRReeeeppppeeeeaaaattttBBBBuuuuttttttttoooonnnn((((3333xxxx))))                                          VVVVkkkkRRRReeeeppppeeeeaaaattttBBBBuuuuttttttttoooonnnn((((3333xxxx))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      VkRepeatButton - A component for displaying repeating Motif buttons
  10.  
  11. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  12.      VkComponent : VkCallbackObject
  13.  
  14. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  15.      #include <Vk/VkRepeatButton.h>
  16.  
  17. PPPPUUUUBBBBLLLLIIIICCCC PPPPRRRROOOOTTTTOOOOCCCCOOOOLLLL SSSSUUUUMMMMMMMMAAAARRRRYYYY
  18.    CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrr////DDDDeeeessssttttrrrruuuuccccttttoooorrrr
  19.            VkRepeatButton(char* name,
  20.                           Widget parent,
  21.                           VkRepeatButtonType type);
  22.            virtual void ~VkRepeatButton(void);
  23.  
  24.  
  25.    AAAAcccccccceeeessssssss FFFFuuuunnnnccccttttiiiioooonnnnssss
  26.            VkRepeatButtonType type(void);
  27.  
  28.  
  29.    CCCCoooonnnnffffiiiigggguuuurrrraaaattttiiiioooonnnn
  30.           void setParameters(long initial, long repeat);
  31.  
  32.  
  33.  
  34.  
  35. XXXX RRRREEEESSSSOOOOUUUURRRRCCCCEEEESSSS AAAASSSSSSSSOOOOCCCCIIIIAAAATTTTEEEEDDDD WWWWIIIITTTTHHHH TTTTHHHHIIIISSSS CCCCLLLLAAAASSSSSSSS
  36.           initialDelay
  37.           repeatDelay
  38.  
  39.  
  40.  
  41. CCCCLLLLAAAASSSSSSSS DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  42.      VkRepeatButton provides auto-repeating Motif push buttons.  Normally, a
  43.      Motif push button activates once when the user presses and releases.
  44.      VkRepeatButton behaves much like scrollbar buttons.  Activation occurs
  45.      when the user presses, begins repeating after some delay and at some
  46.      interval, and stops activating when the user releases.
  47.  
  48.  
  49. DDDDEEEERRRRIIIIVVVVIIIINNNNGGGG SSSSUUUUBBBBCCCCLLLLAAAASSSSSSSSEEEESSSS
  50.      Since VkRepeatButton is designed to substitute for an ordinary, non-
  51.      repeating XmPushButton or XmArrowButton, use of subclasses is unexpected.
  52.      Instead, build VkComponent subclasses as you would with other Motif
  53.      widgets.
  54.  
  55.  
  56. FFFFUUUUNNNNCCCCTTTTIIIIOOOONNNN DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNNSSSS
  57.    VVVVkkkkRRRReeeeppppeeeeaaaattttBBBBuuuuttttttttoooonnnn(((())))
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. VVVVkkkkRRRReeeeppppeeeeaaaattttBBBBuuuuttttttttoooonnnn((((3333xxxx))))                                          VVVVkkkkRRRReeeeppppeeeeaaaattttBBBBuuuuttttttttoooonnnn((((3333xxxx))))
  71.  
  72.  
  73.  
  74.            VkRepeatButton(char* name,
  75.                           Widget parent,
  76.                           VkRepeatButtonType type);
  77.            virtual void ~VkRepeatButton(void);
  78.  
  79.  
  80.           VkRepeatButton creates a component using the name and parent
  81.           parameters.  The file parameter specifies what type of Motif button
  82.           to create.  This value can be RB_pushButton, RB_pushButtonGadget,
  83.           RB_arrowButton, or RB_arrowButtonGadget.  These create XmPushButton,
  84.           XmPushButtonGadget, XmArrowButton, and XmArrowButtonGadget widgets,
  85.           respectively.
  86.  
  87.    ttttyyyyppppeeee(((())))
  88.            VkRepeatButtonType type(void);
  89.  
  90.  
  91.           This function returns the type of button, RB_pushButton,
  92.           RB_pushButtonGadget, RB_arrowButton, or RB_arrowButtonGadget.
  93.  
  94.    sssseeeettttPPPPaaaarrrraaaammmmeeeetttteeeerrrrssss(((())))
  95.            void setParameters(long initial, long repeat);
  96.  
  97.  
  98.           The first argument controls how long, in milliseconds, the user has
  99.           to hold the button down before auto-repeat begins.  It defaults to
  100.           1000, but is controllable via the initialDelay resource.  The second
  101.           argument controls the interval between auto-repeat activations, in
  102.           milliseconds.  It defaults to 200, but is controllable via the
  103.           repeatDelay resource.
  104.  
  105.    ccccoooonnnnsssstttt ccccoooonnnnsssstttt cccchhhhaaaarrrr**** bbbbuuuuttttttttoooonnnnCCCCaaaallllllllbbbbaaaacccckkkk;;;;
  106.           static const const char* buttonCallback;
  107.  
  108.  
  109.           A callback function for detecting activations of the repeating
  110.           button.  The callData argument should be cast to a
  111.           (XmAnyCallbackStruct *).
  112.  
  113.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCoooommmmppppoooonnnneeeennnntttt
  114.           installDestroyHandler(), removeDestroyHandler(), widgetDestroyed(),
  115.           setDefaultResources(), getResources(), manage(), unmanage(),
  116.           baseWidget(), okToQuit(), _name, _baseWidget, _w, deleteCallback
  117.  
  118.  
  119.    IIIInnnnhhhheeeerrrriiiitttteeeedddd ffffrrrroooommmm VVVVkkkkCCCCaaaallllllllbbbbaaaacccckkkkOOOObbbbjjjjeeeecccctttt
  120.           callCallbacks(), addCallback(), removeCallback(),
  121.           removeAllCallbacks()
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. VVVVkkkkRRRReeeeppppeeeeaaaattttBBBBuuuuttttttttoooonnnn((((3333xxxx))))                                          VVVVkkkkRRRReeeeppppeeeeaaaattttBBBBuuuuttttttttoooonnnn((((3333xxxx))))
  137.  
  138.  
  139.  
  140. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  141.      VkComponent
  142.      _V_i_e_w_K_i_t _P_r_o_g_r_a_m_m_e_r'_s _G_u_i_d_e
  143.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m, DEC Press, Bob Sheifler and Jim Gettys
  144.      _T_h_e _X _W_i_n_d_o_w _S_y_s_t_e_m _T_o_o_l_k_i_t, DEC Press, Paul Asente and Ralph Swick
  145.      _T_h_e _O_S_F/_M_o_t_i_f _P_r_o_g_r_a_m_m_e_r_s _R_e_f_e_r_e_n_c_e, Prentice Hall, OSF
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.